package com.bleeth.fx.component;

import com.bleeth.fx.helper.StyleHelper;
import com.bleeth.fx.layout.FormBuilder;
import com.bleeth.fx.layout.GirdCell;
import javafx.geometry.Pos;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;
import lombok.Builder;


/**
 * @author Sakura
 * @version 1.0
 * @date 2021-11-13 22:17
 **/
@Builder
public class MNav {

    private String color = "";

    private double width = 200;

    private double height = 200;



    public Region make() {
        VBox box = FormBuilder.form()
                .addEmptyRow(5D)
                .addRow(GirdCell.createCell(10D, Pos.CENTER), GirdCell.createCell(50D, Pos.CENTER), GirdCell.createCell(1, Pos.CENTER_LEFT),
                        GirdCell.createCell(20D, Pos.CENTER), GirdCell.createCell(10D, Pos.CENTER))
                .addCell(1, MIcon.builder().icon("icon-success").color("#67c23a").build().make())
                .endRow(false)
                .addEmptyRow(5D)
                .build();
        StyleHelper.bg(box).image("img/bg_6.jpg").make();
        return box;
    }


}
